package com.wanxi.map;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;

public class StudentObjectTest {
    public static void main(String[] args) {
        Map<Student,String> map=new HashMap<>();
        map.put(new Student("001","张三"),"四川");
        map.put(new Student("001","李四"),"云南");
        map.put(new Student("003","王五"),"贵州");
//        System.out.println(map);
        Set<Student> students = map.keySet();
        for (Student s:students
             ) {
            System.out.println(s+"-----"+map.get(s));
        }
    }
}
